package Day9;

//编译时异常继承Exception
public class MeiQianException extends Exception {
	//money表示取钱时还差多少钱
	private Double money;
	
	public MeiQianException(Double money) {
		//参数代表抛出异常时要打印的信息
		super("余额不足还差"+money);
		this.money = money;
	}
}	
